cmake_minimum_required(VERSION 3.10)
project(MapSystemProject)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_BUILD_TYPE Debug)

# 查找 OpenCV
find_package(OpenCV REQUIRED)

# 包含头文件目录
include_directories(
    include
    ${OpenCV_INCLUDE_DIRS} # 添加 OpenCV 的头文件
)

# 源文件
set(SOURCES
    src/map_system.cpp
    src/map_global.cpp
    src/map_local.cpp
    src/robot.cpp
    src/common_functions.cpp
    src/lidar_ai_data.cpp
    src/test_main.cpp
)


set(SOURCES_TEST_RTK
    src/map_system.cpp
    src/map_global.cpp
    src/map_local.cpp
    src/robot.cpp
    src/common_functions.cpp
    src/lidar_ai_data.cpp
    src/test_main_rtk.cpp
)
# set(SOURCES
#     src/common_functions.cpp
#     src/lidar_ai_data.cpp
#     src/test_ai_lidar.cpp

# )

set(SOURCES_RTK_DATA
    src/common_functions.cpp
    src/lidar_ai_data.cpp
    src/test_rtk_data.cpp

)


add_executable(test_rtk_data ${SOURCES_RTK_DATA})
target_link_libraries(test_rtk_data ${OpenCV_LIBS})


# 添加可执行文件
# add_executable(test ${SOURCES})
# target_link_libraries(test ${OpenCV_LIBS})

add_executable(test_main ${SOURCES})
target_link_libraries(test_main ${OpenCV_LIBS})

add_executable(test_main_rtk ${SOURCES_TEST_RTK})
target_link_libraries(test_main_rtk ${OpenCV_LIBS})
